翻訳と辞書
Words near each other
・ C&O 1308
・ C&O 2755
・ C&O desk
・ C&O Lexington Subdivision
・ C&O Railroad Bridge
・ C&P Haulage v Middleton
・ C&R
・ C&S
・ C Capricorni
・ C Carinae
・ C Cat Trance
・ C cell
・ C Centauri
・ C change
・ C Channel
C character classification
・ C class
・ C command
・ C Concept Design
・ C connector
・ C Cooper
・ C corporation
・ C Cube
・ C Czarnikow Ltd v Koufos
・ C data types
・ C date and time functions
・ C David Marsden
・ C Duncan
・ C dynamic memory allocation
・ C F Booth


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

C character classification : ウィキペディア英語版
C character classification

C character classification is an operation provided by a group of functions in the ANSI C Standard Library for the C programming language. These functions are used to test characters for membership in a particular class of characters, such as alphabetic characters, control characters, etc. Both single-byte, and wide characters are supported.
== History ==

Early toolsmiths writing in C under Unix began developing idioms at a rapid rate to classify characters into different types. For example, in the ASCII character set, the following test identifies a letter:
if ('A' <= c && c <= 'Z' || 'a' <= c && c <= 'z')
However, this idiom ''does not necessarily work'' for other character sets such as EBCDIC.
Pretty soon, programs became thick with tests such as the one above, or worse, tests almost like the one above. A programmer can write the same idiom several different ways, which slows comprehension and increases the chance for errors.
Before long, the idioms were replaced by the functions in .

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「C character classification」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.